https://discord.gg/botpress logo
Webchat embedded mode: container ignored, bot alwa...
# šŸ¤help
s
šŸ‘‹ Hello Botpress team, I’m facing a blocking issue with full embedding. I’m working in WordPress with Elementor, and I need the bot to appear inside an HTML element via .... I’m using container: "#webchat-container" in botpress.init(), and I style .bpWebchat to fit inside. But the bot always appears in the default pop-up position (bottom right) — even when it opens automatically. āœ… If I use .bpWebchat { position: absolute; top: X; left: Y; }, I can force its position — but that’s not embedded (that is just like pop up but at another position and I can hide the pop-up button), and it’s not inside the container DOM-wise. āŒ I tried moving the .bpWebchat element manually into the container, but it doesn’t work properly. šŸ‘‰ Key constraint: in Elementor, if the chatbot is not actually inside the container div, it won’t appear in the right spot — especially on mobile or for responsive layout. Is there a recommended way to force true embedding (in-DOM) of .bpWebchat inside a container with container: "#webchat-container"? Or has the behavior changed with recent updates? Any insight is welcome. Thanks a lot in advance !
p
Could you share the ideal code snippet ( the one that doesn't behave as expected)?
s
Of course ! Here you can see the code I added in a html element on elementor on wordpress (I just put it in an html_file to send it to you) I also provide an image where we can observe the container with the red dashes, and the bot. The container respects the element HTML position on elementor but the bot didn't inject on the container... I want the bot to inject at the exact place of the red dashes. Thank you for your help ! https://cdn.discordapp.com/attachments/1381444228596371546/1382397775123054712/exemple_container_wordpress.html?ex=684b01c1&is=6849b041&hm=e11e8ec14373f81f5fdf8d19f89e94fe8672ab44a0cb43c64656304e4702efc8& https://cdn.discordapp.com/attachments/1381444228596371546/1382397775609729034/Screenshot_2025-06-11_at_18.24.52.png?ex=684b01c1&is=6849b041&hm=08f61161fe78aa1eb2cf85a502b934fb260a3a62af5a9719ea5fd8f1dac4e0ef&
b
@prehistoric-airplane-85682 please do you have any solutions to make wordpress integration embedded responsive ?